# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('startingpoint','StartingPointHandler'),
               build_route('beach1','Beach1Handler'),
               build_route('beach2','Beach2Handler'),
               build_route('forest','ForestHandler'),
               build_route('spring','SpringHandler'),
               build_route('cave_opening','CaveOpeningHandler'),
               build_route('cave','CaveHandler'),
               build_route('bridge','BridgeHandler'),
               build_route('tribe','TribeHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               build_route('death','DeathHandler'),
               build_route('start_menu','StartMenuHandler'),
               default_route('start_menu', 'StartMenuHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
